package com.james.happyfarm.modules;

import javax.jdo.PersistenceManager;

import com.james.happyfarm.JDO.PMF;
import com.james.happyfarm.JDO.User;

public class LoginModule {

	public void saveUser(User user){
		PersistenceManager pm = PMF.get().getPersistenceManager();
		try {
			pm.makePersistent(user);
		} finally {
			pm.close();
		}
	}
}
